export const randomStr = (len = 32) => {
  const chars =
    'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
  const maxPos = chars.length
  let str = ''
  for (let i = 0; i < maxPos; i++) {
    str += chars.charAt(Math.floor(Math.random() * maxPos))
  }
  return str
}
